-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
factory contract integration testcases #75
base: development
Are you sure you want to change the base?
Conversation
); | ||
} | ||
|
||
add_liquidity( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In cross-chain test cases we need to set assertions on the sending and receiving chain to make sure everything is working as expected. Errors on the receiving chain won't show here.
This applies to all cases where were expect the transaction to work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joemonem fixed some changes let me know if there should be any other assertions that need to be added
87992d3
to
8b34b7e
Compare
}, | ||
}, | ||
slippage_tolerance_bps: 100, // 1% slippage tolerance | ||
timeout: None, // 10 minutes in seconds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
timeout is None, but the comment says 10 minutes in seconds
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Try merging the development branch into this one to resolve merge conflicts |
Pull Request
Description
Added integration test cases for core functionalities in the factory contract, including
create pool
,add liquidity
,register token
, andswap token
. These tests ensure correctness and robustness for essential contract operations, along with edge case validation for handling unexpected inputs or scenarios.Type of Change
Related Issue
None
Testing
integration tests added for factory contract
Checklist
Screenshots (if applicable)
None
Additional Notes
None